package com.google.p.code.springscim.schema.model;

import java.util.ArrayList;
import java.util.List;

public class ResourceSubAttribute {
    
    /*
     * The attribute's name.
     */
    private String name;
    
    /*
     * The attribute's data type; e.g., String.
     */
    private String type;
    
    /*
     * The attribute's human readable description. When applicable Service
     * Providers MUST specify the description specified in the core schema
     * specification.
     */
    private String description;
    
    /*
     * A Boolean value that specifies if the attribute is mutable.
     */
    private boolean readOnly;
    
    /*
     * A Boolean value that specifies if the attribute is required.
     */
    private boolean required;
    
    /*
     * A Boolean value that specifies if the String attribute is case sensitive.
     */
    private boolean caseExact;
    
    /*
     * A collection of canonical values. When applicable Service Providers MUST
     * specify the canonical types specified in the core schema specification;
     * e.g.,"work","home". OPTIONAL.
     */
    private List<SimpleValueAttribute> canonicalValues = new ArrayList<SimpleValueAttribute>();
    
    public String getName() {
        return name;
    }
    
    public void setName(String name) {
        this.name = name;
    }
    
    public String getType() {
        return type;
    }
    
    public void setType(String type) {
        this.type = type;
    }
    
    public String getDescription() {
        return description;
    }
    
    public void setDescription(String description) {
        this.description = description;
    }
    
    public boolean isReadOnly() {
        return readOnly;
    }
    
    public void setReadOnly(boolean readOnly) {
        this.readOnly = readOnly;
    }
    
    public boolean isRequired() {
        return required;
    }
    
    public void setRequired(boolean required) {
        this.required = required;
    }
    
    public boolean isCaseExact() {
        return caseExact;
    }
    
    public void setCaseExact(boolean caseExact) {
        this.caseExact = caseExact;
    }
    
    public List<SimpleValueAttribute> getCanonicalValues() {
        return canonicalValues;
    }
    
    public void setCanonicalValues(List<SimpleValueAttribute> canonicalValues) {
        this.canonicalValues = canonicalValues;
    }
    
}
